VERSION = 2.2.0.12

# If you want to include NDS support for ncpmount uncomment this:
# WARNING! NDS support is very beta, uncomment only if you are testing
# because anything can happen (like crashing the linux box or nw server).
NDS_SUPPORT = 1

# If you want to include packet signature support uncomment this:
# WARNING! packet signature support is in beta stage, uncomment only when you 
# know what you are doing, anything can happen (like crashing the linux box or
# netware server).
# When enabling, make sure you have applied the kernel patches too,
# otherwise the packet signatures won't work.
SIGNATURES = 1

# If you want to eat only one NDS connection. Does not work at this time.
# (waiting for Novell...)
NDS_PRIVATEKEY = 1

# If you do not want IPX support, comment CONFIG_NATIVE_IPX out...
# I cannot recommend doing it
CONFIG_NATIVE_IPX = 1

# If you want native IP support, uncomment CONFIG_NATIVE_IP
# Do not forget that it is VERY ALPHA code, with almost no support
# Enable only if you are interested in NCP over IP and you want help
# me. -A ip.address is your friend. At this time you have to silently
# ignore Login to server XXXX as YYYY - think that XXXX is ip.address and
# not one taken from .nwclient. Also, if you have not .nwclient, you have
# to add -S DUMMY on commandline.
CONFIG_NATIVE_IP = 1

# Include code for Linux2.0.x
MOUNT2 = 1
# Include code for Linux2.1.x
MOUNT3 = 1

# ########################################################
BINDIR = $(DESTDIR)/usr/bin
SBINDIR = $(DESTDIR)/sbin
#LIBSODIR = /usr/lib
LIBSODIR = $(DESTDIR)/lib
LIBADIR = $(DESTDIR)/usr/lib
MANDIR = $(DESTDIR)/usr/man

CC = gcc

COPT = -O2
CWARN = -Wall
# CWARN = -Wall -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Waggregate-return -Wnested-externs -Winline -Wbad-function-cast -W #-Werror #-Wwrite-strings -Wtraditional -Wshadow
# ########################################################

INCLUDES=-I$(TOPDIR)/include

ifdef SIGNATURES
CFLAGS_DEFINES += -DSIGNATURES
endif
ifdef NDS_SUPPORT
CFLAGS_DEFINES += -DNDS_SUPPORT
endif
ifdef CONFIG_NATIVE_IP
CFLAGS_DEFINES += -DCONFIG_NATIVE_IP
endif
ifdef CONFIG_NATIVE_IPX
CFLAGS_DEFINES += -DCONFIG_NATIVE_IPX
endif
ifdef MOUNT2
CFLAGS_DEFINES += -DMOUNT2
endif
ifdef MOUNT3
CFLAGS_DEFINES += -DMOUNT3
endif
CFLAGS_DEFINES += -DNCPFS_VERSION=\"$(VERSION)\" -DNWSFIND=\"$(BINDIR)/nwsfind\"
CFLAGS_OPTIONS += $(COPT)
CFLAGS_OPTIONS += $(CWARN)

CCFLAGS = $(CFLAGS_DEFINES) $(CFLAGS_OPTIONS) $(INCLUDES)

# If your system is ELF, either also do a 'make install', or append the util/
# directory where the dynamic library resides to the environment
# variable LD_LIBRARY_PATH
HAVE_ELF=$(shell file `whereis gcc|cut -d ' ' -f 2`| \
		grep ELF >/dev/null && echo -n yes )
#HAVE_ELF=yes

export VERSION

VERSION_SONAME = $(shell echo $(VERSION) | cut -d '.' -f 1)
VERSION_SOLIB = $(shell echo $(VERSION) | cut -d '.' -f 1-3)




